package com.hansming.bss.modules.sfc.controller;

import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.activiti.engine.impl.util.json.JSONArray;
import org.activiti.engine.impl.util.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.hansming.bss.common.config.Global;
import com.hansming.bss.common.utils.PropertiesLoader;
import com.hansming.bss.common.web.BaseController;
import com.hansming.bss.modules.sfc.entity.Bannar;
import com.hansming.bss.modules.sfc.entity.CarInfo;
import com.hansming.bss.modules.sfc.entity.City;
import com.hansming.bss.modules.sfc.entity.FeedbackMessage;
import com.hansming.bss.modules.sfc.entity.Line;
import com.hansming.bss.modules.sfc.entity.RentCar;
import com.hansming.bss.modules.sfc.service.BannarService;
import com.hansming.bss.modules.sfc.service.CarInfoService;
import com.hansming.bss.modules.sfc.service.CityService;
import com.hansming.bss.modules.sfc.service.FeedbackMessageService;
import com.hansming.bss.modules.sfc.service.LineService;
import com.hansming.bss.modules.sfc.service.RentCarService;
import com.hansming.bss.modules.sfc.util.DateHelper;
import com.hansming.bss.modules.sfc.util.SendMailUtil;

/**
 * @author Administrator
 *	首页控制类
 *	
 */



@Controller
@RequestMapping(value = "/")
public class IndexController extends BaseController{
	
	@Autowired
	private BannarService bannarservice;
	
	@Autowired
	private CarInfoService carinfoservice;
	
	@Autowired
	private LineService lineService;
	
	@Autowired
	private CityService cityService;
	@Autowired
	private RentCarService rentCarService;
	@Autowired
	private FeedbackMessageService feedbackMessageService;
	
	
	//跳转                                    首页JSP跳转用接口   暂时都是用ajax请求
	@RequestMapping(value="/")
	public String index(Model model){
		//bannars		
		List<Bannar> bannars = bannarservice.getIndexBannars();
		model.addAttribute("bannar", bannars);					
		//轻松租车|热门线路
		List<CarInfo> carinfos = carinfoservice.getCarsInIndex();
		model.addAttribute("navcar",carinfos);
		List<Line> lines = lineService.IndexLine();
		model.addAttribute("navline",lines);
		System.out.println("asd");
		return "modules/sfc/pcsofangche/index/index/IndexCenter";
	}
	
	
	
	
	//bannar AJAX
	@RequestMapping(value="/bannar")
	public void getbannar(HttpServletRequest request, HttpServletResponse response){
		response.setCharacterEncoding("UTF-8");
		response.setHeader("Access-Control-Allow-Origin", "*");
        response.setHeader("Cache-Control", "no-cache");
        try {
			PrintWriter out = response.getWriter();
			JSONObject jsonObject = new JSONObject(); 
	        JSONArray datas = new JSONArray();		//返回到前台的具体的价格日期信息json
			String code = "1";								//返回前台的消息状态
			String msg = "传递成功";	
			List<Bannar> bannars = bannarservice.getIndexBannars();
			for(int i=0;i<bannars.size();i++){
				JSONObject jo = new JSONObject();
				jo.put("picture",Global.getBasePath()+bannars.get(i).getUrl());
//				jo.put("label", bannars.get(i).getLabel());
				datas.put(jo);
			}		
			jsonObject.put("code",code);
			jsonObject.put("msg", msg);
			jsonObject.put("data",datas);
			out.print(jsonObject.toString());
			out.flush();
			out.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
	
	
	@RequestMapping(value="/carsearch")
	public void searchCarCity(HttpServletRequest request, HttpServletResponse response,String type){
		response.setCharacterEncoding("UTF-8");
		response.setHeader("Access-Control-Allow-Origin", "*");
        response.setHeader("Cache-Control", "no-cache");
        try{
        	PrintWriter out = response.getWriter();
			JSONObject jsonObject = new JSONObject(); 
	        JSONArray datas = new JSONArray();		//返回到前台的具体的价格日期信息json
	        String code = "1";								//返回前台的消息状态
			String msg = "传递成功";	
			//租车热门城市
			if(type.equals("1")){	
				List<City> citys = cityService.getCityInhotflag();
				for(int i=0;i<citys.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys.get(i).getName());
					datas.put(jo);
				}
			}else if(type.equals("2")){
				//ABCDEF
				List<City> citys1 = cityService.getCityByLetter("A");
				for(int i=0;i<citys1.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys1.get(i).getName());
					datas.put(jo);
				}
				
				List<City> citys2 = cityService.getCityByLetter("B");
				for(int i=0;i<citys2.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys2.get(i).getName());
					datas.put(jo);
				}
				
				List<City> citys3 = cityService.getCityByLetter("C");
				for(int i=0;i<citys3.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys3.get(i).getName());
					datas.put(jo);
				}
				List<City> citys5 = cityService.getCityByLetter("D");
				for(int i=0;i<citys5.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys5.get(i).getName());
					datas.put(jo);
				}
				List<City> citys4 = cityService.getCityByLetter("E");
				for(int i=0;i<citys4.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys4.get(i).getName());
					datas.put(jo);
				}
				
				
				
			}else if(type.equals("3")){
				List<City> citys5 = cityService.getCityByLetter("F");
				for(int i=0;i<citys5.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys5.get(i).getName());
					datas.put(jo);
				}
				//GHIJK
				List<City> citys1 = cityService.getCityByLetter("G");
				for(int i=0;i<citys1.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys1.get(i).getName());
					datas.put(jo);
				}
				List<City> citys2 = cityService.getCityByLetter("H");
				for(int i=0;i<citys2.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys2.get(i).getName());
					datas.put(jo);
				}
//				List<City> citys3 = cityService.getCityByLetter("I");
//				for(int i=0;i<citys3.size();i++){
//					JSONObject jo = new JSONObject();
//					jo.put("city",citys3.get(i).getName());
//					datas.put(jo);
//				}
				List<City> citys4 = cityService.getCityByLetter("J");
				for(int i=0;i<citys4.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys4.get(i).getName());
					datas.put(jo);
				}
				
			}else if(type.equals("4")){
				List<City> citys5 = cityService.getCityByLetter("K");
				for(int i=0;i<citys5.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys5.get(i).getName());
					datas.put(jo);
				}	
				//LMNPQ
				List<City> citys1 = cityService.getCityByLetter("L");
				for(int i=0;i<citys1.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys1.get(i).getName());
					datas.put(jo);
				}
//				List<City> citys2 = cityService.getCityByLetter("M");
//				for(int i=0;i<citys2.size();i++){
//					JSONObject jo = new JSONObject();
//					jo.put("city",citys2.get(i).getName());
//					datas.put(jo);
//				}
				List<City> citys3 = cityService.getCityByLetter("N");
				for(int i=0;i<citys3.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys3.get(i).getName());
					datas.put(jo);
				}
//				List<City> citys4 = cityService.getCityByLetter("P");
//				for(int i=0;i<citys4.size();i++){
//					JSONObject jo = new JSONObject();
//					jo.put("city",citys4.get(i).getName());
//					datas.put(jo);
//				}
				List<City> citys6 = cityService.getCityByLetter("Q");
				for(int i=0;i<citys6.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys6.get(i).getName());
					datas.put(jo);
				}	
			}else if(type.equals("5")){
				//RSTW
				List<City> citys1 = cityService.getCityByLetter("R");
				for(int i=0;i<citys1.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys1.get(i).getName());
					datas.put(jo);
				}
				List<City> citys2 = cityService.getCityByLetter("S");
				for(int i=0;i<citys2.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys2.get(i).getName());
					datas.put(jo);
				}
				List<City> citys3 = cityService.getCityByLetter("T");
				for(int i=0;i<citys3.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys3.get(i).getName());
					datas.put(jo);
				}
				List<City> citys4 = cityService.getCityByLetter("W");
				for(int i=0;i<citys4.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys4.get(i).getName());
					datas.put(jo);
				}
			
			}else if(type.equals("6")){
				//XYZ
				List<City> citys1 = cityService.getCityByLetter("X");
				for(int i=0;i<citys1.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys1.get(i).getName());
					datas.put(jo);
				}
				List<City> citys2 = cityService.getCityByLetter("Y");
				for(int i=0;i<citys2.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys2.get(i).getName());
					datas.put(jo);
				}
				List<City> citys3 = cityService.getCityByLetter("Z");
				for(int i=0;i<citys3.size();i++){
					JSONObject jo = new JSONObject();
					jo.put("city",citys3.get(i).getName());
					datas.put(jo);
				}	
			}
			jsonObject.put("code",code);
			jsonObject.put("msg", msg);
			jsonObject.put("data",datas);
			out.print(jsonObject.toString());
			out.flush();
			out.close();
        }catch(Exception e){
        	
        }
        
	}
	
	
	//搜索框线路城市
	@RequestMapping(value="/linesearch")
	public void searchline(HttpServletRequest request, HttpServletResponse response){
		response.setCharacterEncoding("UTF-8");
		//允许跨域访问
		response.setHeader("Access-Control-Allow-Origin", "*");
        response.setHeader("Cache-Control", "no-cache");
        try {
        	PrintWriter out = response.getWriter();
			JSONObject jsonObject = new JSONObject(); 
	        JSONArray datas = new JSONArray();		//返回到前台的具体的价格日期信息json
	        String code = "1";								//返回前台的消息状态
			String msg = "登录成功！";
        	List<City> citys = cityService.getCitysInlinepage();
        	for(int i=0;i<citys.size();i++){
				JSONObject jo = new JSONObject();
				jo.put("city",citys.get(i).getName());
				datas.put(jo);
			}			
        	jsonObject.put("code",code);
   			jsonObject.put("msg", msg);
   			jsonObject.put("data",datas);
   			out.print(jsonObject.toString());
   			out.flush();
   			out.close();
        }catch(Exception e){
        	
        }
        
	}
	
	@RequestMapping(value="/navcity")
	public void navcity(HttpServletRequest request, HttpServletResponse response){
		response.setCharacterEncoding("UTF-8");
		//允许跨域访问
		response.setHeader("Access-Control-Allow-Origin", "*");
        response.setHeader("Cache-Control", "no-cache");
        try {
			PrintWriter out = response.getWriter();
			JSONObject jsonObject = new JSONObject(); 
	        JSONArray datas = new JSONArray();		//返回到前台的具体的价格日期信息json
	        String code = "1";								//返回前台的消息状态
			String msg = "登录成功！";
			List<City> cities = cityService.getCityInhotflag();
			if(cities != null){
				for(City c:cities){
					JSONObject jobj = new JSONObject();
					jobj.put("city", c.getName());
					datas.put(jobj);
				}
			}
	        jsonObject.put("code",code);
			jsonObject.put("msg", msg);
			jsonObject.put("data",datas);
			out.print(jsonObject.toString());
			out.flush();
			out.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	
	
	}
	
	
	
	
	
	//首页轻松租车和热门线路
	@RequestMapping(value="/nav")
	public void navsth(HttpServletRequest request, HttpServletResponse response,String type){
		response.setCharacterEncoding("UTF-8");
		//允许跨域访问
		response.setHeader("Access-Control-Allow-Origin", "*");
        response.setHeader("Cache-Control", "no-cache");
        try {
			PrintWriter out = response.getWriter();
			JSONObject jsonObject = new JSONObject(); 
	        JSONArray datas = new JSONArray();		//返回到前台的具体的价格日期信息json
			String code = "1";								//返回前台的消息状态
			String msg = "传递成功";	
			if(type.equals("1")){
				List<CarInfo> carinfos = carinfoservice.getCarsInIndex();
				for(int i=0;i<carinfos.size();++i){
					JSONObject jo = new JSONObject();
					jo.put("id",carinfos.get(i).getId());
					jo.put("title",carinfos.get(i).getTitle());
					jo.put("city", carinfos.get(i).getCity());
					jo.put("price",carinfos.get(i).getPrice() );
					jo.put("picture",Global.getBasePath()+carinfos.get(i).getShowurl());
					datas.put(jo);
				}	
			}else if(type.equals("2")){
				List<Line> lines = lineService.IndexLine();	
				for(int i=0;i<lines.size();++i){
					JSONObject jo = new JSONObject();
					jo.put("id",lines.get(i).getId());
					jo.put("title",lines.get(i).getTitle());
					jo.put("city", lines.get(i).getCity());
					jo.put("price",lines.get(i).getPrice() );
					jo.put("picture",Global.getBasePath()+lines.get(i).getShowurl());
					if(lines.get(i).getPathway()!=null){
						String pathway = lines.get(i).getPathway().replace("&mdsh", "-");
						pathway = pathway.replace("&ndash", "-");
						jo.put("pathway", pathway);
					}
					JSONArray ja = new JSONArray();
					if(lines.get(i).getCharacteristic() != null && !"".equals(lines.get(i).getCharacteristic())){
							String[] serves = lines.get(i).getCharacteristic().split("\\|");
							for(int l=0;l<serves.length;l++){
								JSONObject jb= new JSONObject();
								jo.put("name", serves[l]);
								ja.put(jb);
							}
							jo.put("charact", ja);
					}
					
					datas.put(jo);
				}	
			}
//			List<CarInfo> carinfos = carinfoservice.getcarsInIndex();
//			for(int i=0;i<carinfos.size();i++){
//				
//			}		
			
			jsonObject.put("code",code);
			jsonObject.put("msg", msg);
			jsonObject.put("data",datas);
			out.print(jsonObject.toString());
			out.flush();
			out.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        	
		
	}
	
	
	
	
	
	
	//首页导航栏租车信息的AJAX请求
	@RequestMapping(value="/navcar")
	public void getnavcarinfo(HttpServletRequest request, HttpServletResponse response,String city) throws UnsupportedEncodingException{
		request.setCharacterEncoding("UTF-8");
		response.setCharacterEncoding("UTF-8");
		response.setHeader("Access-Control-Allow-Origin", "*");
        response.setHeader("Cache-Control", "no-cache");
        System.out.println("123123123"+city);
        try {
			PrintWriter out = response.getWriter();
			JSONObject jsonObject = new JSONObject(); 
	        JSONArray datas = new JSONArray();		//返回到前台的具体的价格日期信息json
			String code = "1";								//返回前台的消息状态
			String msg = "传递成功";	
			List<CarInfo> carinfos = carinfoservice.getCarsInNav(city);
			for(CarInfo car:carinfos){
				JSONObject jo = new JSONObject();
				jo.put("id",car.getId());
				jo.put("title",car.getTitle());
				jo.put("city", car.getCity());
				jo.put("price",car.getPrice() );
				jo.put("picture",Global.getBasePath()+car.getShowurl());
				datas.put(jo);
			}
			jsonObject.put("code",code);
			jsonObject.put("msg", msg);
			jsonObject.put("data",datas);
			out.print(jsonObject.toString());
			out.flush();
			out.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 							
	}
	
	//首页下方导航栏线路信息的AJAX请求
	@RequestMapping(value="/navline")
	public void getnavlineinfo(HttpServletRequest request, HttpServletResponse response,String type){
		response.setCharacterEncoding("UTF-8");
		response.setHeader("Access-Control-Allow-Origin", "*");
        response.setHeader("Cache-Control", "no-cache");     
        try {
        	JSONArray datas = new JSONArray();		//返回到前台的具体的价格日期信息json
    		String code = "1";								//返回前台的消息状态
    		String msg = "传递成功";	
    		JSONObject jsonObject = new JSONObject(); 
			PrintWriter out = response.getWriter();      
			//根据类别来查找线路
			if(type.equals("当季热玩")){
				type = "";
				List<Line> lines = lineService.getLinesByType(type);
				for(Line l:lines){
					JSONObject j = new JSONObject();
					j.put("id", l.getId());
					j.put("title",l.getTitle());
					j.put("price",l.getPrice());
					j.put("city",l.getCity());
					j.put("picture",Global.getBasePath()+l.getShowurl());
					if(l.getPathway()!=null){
						String pathway = l.getPathway().replace("&mdsh", "-");
						pathway = pathway.replace("&ndash", "-");
						j.put("pathway", pathway);
					}
					JSONArray ja = new JSONArray();
					if(l.getCharacteristic() != null && !"".equals(l.getCharacteristic())){
							String[] serves = l.getCharacteristic().split("\\|");
							for(int i=0;i<serves.length;i++){
								JSONObject jo= new JSONObject();
								jo.put("name", serves[i]);
								ja.put(jo);
							}
							j.put("charact", ja);
					}
					datas.put(j);
				}
			}else {
				List<Line> lines = lineService.getLinesByType(type);
				for(Line l:lines){
					JSONObject j = new JSONObject();
					j.put("id", l.getId());
					j.put("title",l.getTitle());
					j.put("price",l.getPrice());
					j.put("city",l.getCity());
					j.put("picture",Global.getBasePath()+l.getShowurl());
					if(l.getPathway()!=null){
						String pathway = l.getPathway().replace("&mdsh", "-");
						pathway = pathway.replace("&ndash", "-");
						j.put("pathway", pathway);
					}
					JSONArray ja = new JSONArray();
					if(l.getCharacteristic() != null && !"".equals(l.getCharacteristic())){
							String[] serves = l.getCharacteristic().split("\\|");
							for(int i=0;i<serves.length;i++){
								JSONObject jo= new JSONObject();
								jo.put("name", serves[i]);
								ja.put(jo);
							}
							j.put("charact", ja);
					}
					datas.put(j);
				}
			}	
			jsonObject.put("code",code);
			jsonObject.put("msg", msg);
			jsonObject.put("data",datas);
			out.print(jsonObject.toString());
			out.flush();
			out.close();
		} catch (IOException e) {
			
		}
        					
	}
	
	//验证码
	@RequestMapping(value="/codeImg")
	public void getcode(HttpServletRequest request, HttpServletResponse response){
		response.setCharacterEncoding("UTF-8");
		response.setHeader("Access-Control-Allow-Origin", "*");
        response.setHeader("Cache-Control", "no-cache");     
        try {
        	JSONArray datas = new JSONArray();		//返回到前台的具体的价格日期信息json
    		String code = "1";								//返回前台的消息状态
    		String msg = "传递成功";	
    		JSONObject jsonObject = new JSONObject(); 
			PrintWriter out = response.getWriter();   
			
			
			
    		jsonObject.put("code",code);
			jsonObject.put("msg", msg);
			jsonObject.put("data",datas);
			out.print(jsonObject.toString());
			out.flush();
			out.close();
		} catch (IOException e) {
			
		}
	}
	
	
	@RequestMapping(value="/contact")
	public void getcontacts(HttpServletRequest request, HttpServletResponse response){
		
	}
	
	
	//首页时间接口，为首页提供初始起始终止时间
		@RequestMapping(value="/indexFormaltime")
		public void indexFormaltime(HttpServletRequest request, HttpServletResponse response){
			response.setCharacterEncoding("UTF-8");
			response.setHeader("Access-Control-Allow-Origin", "*");
	        response.setHeader("Cache-Control", "no-cache");     
	        try {
	        	JSONObject datas = new JSONObject();		//返回到前台的具体的价格日期信息json
	    		String code = "1";								//返回前台的消息状态
	    		String msg = "传递成功";	
	    		JSONObject jsonObject = new JSONObject(); 
				PrintWriter out = response.getWriter();
				
				
				SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		      	Calendar todatecal = Calendar.getInstance();
		      	Calendar todatecaltwo = Calendar.getInstance();
//		      	todatecal.setTime(sdf.parse(linetime));
		      	todatecal.add(Calendar.DAY_OF_MONTH,1);
		      	todatecaltwo.add(Calendar.DAY_OF_MONTH,3);
		      	Date enddate = todatecal.getTime();
		      	Date enddatetwo = todatecaltwo.getTime();
		      	String endd = sdf.format(enddate);
		      	String enddtwo = sdf.format(enddatetwo);
		      	datas.put("start", endd);
		      	datas.put("end", enddtwo);
				
				
	    		jsonObject.put("code",code);
				jsonObject.put("msg", msg);
				jsonObject.put("data",datas);
				out.print(jsonObject.toString());
				out.flush();
				out.close();
			} catch (IOException e) {
				
			}
		}
	
		
		
	//新增长期租车
	@RequestMapping(value="/saveRentCar")
	public void saveRentCar(HttpServletRequest request, HttpServletResponse response,@RequestBody RentCar rentCar) throws IOException{
		JSONObject jsonObject = new JSONObject();
		rentCarService.save(rentCar);
		
		
		String code = "1";								//返回前台的消息状态
		String msg = "添加成功!";		
		jsonObject.put("respCode", code);
		jsonObject.put("msg", msg);
		response.setContentType("text/plain");
		response.setHeader("Cache-Control", "no-cache");
		response.setCharacterEncoding("UTF-8");
		PrintWriter writer = response.getWriter();
		writer.print(jsonObject);
		
	}
	
	//新增反馈留言信息
	@RequestMapping(value="/saveFeedbackMsg")
	public void saveFeedbackMsg(HttpServletRequest request, HttpServletResponse response,@RequestBody FeedbackMessage feedbackMessage) throws IOException{
		JSONObject jsonObject = new JSONObject();
		feedbackMessageService.save(feedbackMessage);
		
		PropertiesLoader config = new PropertiesLoader("config.properties");
		String yunyingemail = config.getProperty("yunyingemail");
		Date now = new Date();
      	try {
      		SimpleDateFormat dft = new SimpleDateFormat("yyyy-MM-dd 	HH:mm:ss");
			String emailtile = "客户留言信息反馈";
			String content = "<p>留言时间："+dft.format(feedbackMessage.getCreateDate())+"</p>"+								
										"<p>联系人姓名:"+feedbackMessage.getName()+"</p>"+
										"<p>联系方式 --手机/邮箱:"+feedbackMessage.getContact_way()+"</p>"+
										"<p>留言内容:"+feedbackMessage.getMessage()+"</p>";						
			SendMailUtil.Sendmail(yunyingemail,emailtile , content);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			System.out.println("发送邮件失败");
		}
		
		
		
		String code = "1";								//返回前台的消息状态
		String msg = "添加成功!";		
		jsonObject.put("respCode", code);
		jsonObject.put("msg", msg);
		response.setContentType("text/plain");
		response.setHeader("Cache-Control", "no-cache");
		response.setCharacterEncoding("UTF-8");
		PrintWriter writer = response.getWriter();
		writer.print(jsonObject);
		
	}
		
		
		
}
